/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-10-10
 * Time: 11:40
 */
class Repeat{
    public String numbser(String ss){
        char[] s = ss.toCharArray();
        int n = s.length;

        for(int i = 0; i < n; i++){
            if(s[i] == '?'){
                for(char ch = 'a'; ch <= 'z'; ch++){
                    if((i == 0 || ch != s[i-1]) && (i == n-1 || ch != s[i+1])){
                        s[i] = ch;
                        break;
                    }
                }
            }
        }
        return String.valueOf(s);
    }
}


public class demo2 {
    public static void main(String[] args) {
        Repeat repeat = new Repeat();
        String s = "?ac?vdg?dfaqeadf?";
        String a = repeat.numbser(s);
        System.out.println(a);
    }
}
